<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加</title>
</head>
<style type="text/css">
    body{
        margin: 0px 0px;
        padding: 0px 0px;
        background-color: #aba7c7;
    }
    #box{
        width: 50%;
        height: 800px;
        margin: 2% auto;
        background-color: #aba7c7;
    }
    #box div{
        position: inherit;
        width: 100%;
        margin: 0px auto 10px;
    }
    #box div span{
        display: inline-block;
        width: 10%;
        height: 40px;
        position: relative;
        float: left;
        margin: 0px 2%;
        font-family: "Angsana New";
        font-size: 14px;
        line-height: 40px;
        color: #E13728;
    }
    #box div #submit{
        display: inline-block;
        width: 10%;
        height: 40px;
        position: relative;
        float: right;
        right: 6%;
    }
</style>
<body>
<div id="box">
    <form id="addBlog" action="/blog/addBlogInfo" method="post" accept-charset="utf-8">
        <div>
            <span>博客分类：</span>
            <select name="userClass" style="width: 10%;height: 30px">
                <#list listBlogClass as blogClass>
                    <option value="${blogClass.blogClassId}">${blogClass.className}</option>
                </#list>
            </select>
        </div>
        <div>
            <span>我的分类：</span>
            <select name="blogClass" style="width: 10%;height: 30px">
                <#list listUserClass as userClass>
                    <option value="${userClass.userClassId}">${userClass.className}</option>
                </#list>
            </select>
        </div>
        <div>
            <span>文章标题：</span>
            <input type="text" name="blogName" maxlength=16" placeholder="仅限16字之内" style="width: 80%;height: 40px"><br/>
        </div>
        <div>
            <span>文章内容：</span>
            <textarea rows="3" cols="20" name="blogContent" style="width: 80%;height: 600px"></textarea><br/>
        </div>
        <div>
            <input type="submit" value="添加文章" id="submit">
        </div>
    </form>
</div>
</body>
</html>